package com.cc.visitor.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author chanchaw
 * @create 2025-02-08 15:43
 */
@CrossOrigin
@RestController
@RequestMapping("/miniFrontLog")
public class MiniFrontLogController {
    private static final Logger logger = LoggerFactory.getLogger("miniFront");
    @PostMapping("/writeLog")
    public void writeLog(@RequestBody Map<String,String> params){
        String s = params.get("logContent");
        logger.info(s);
    }
}
